package com.sc.design.state;

/**
 * @author sc
 * Created on  2017/12/7
 */
public class OpenState extends LiftState {
    @Override
    void open() {
        System.out.println("开门");
    }

    @Override
    void close() {
        super.context.setLiftState(Context.close);
        super.context.getLiftState().close();
    }

    @Override
    void run() {

    }

    @Override
    void stop() {

    }
}
